package com.lengyu.vxminiprogram.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lengyu.vxminiprogram.dto.TakePeopleDto;
import com.lengyu.vxminiprogram.entity.TakePeople;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface ITakePeopleConverter {
    TakePeople dtoToEntity(TakePeopleDto dto);
    TakePeopleDto entityToDto(TakePeople entity);
    List<TakePeopleDto> listEntityToDto(List<TakePeople> entityList);
    List<TakePeople> listDtoToEntity(List<TakePeopleDto> dtoList);
    Page<TakePeopleDto> pageEntityToDto(Page<TakePeople> entityPage);
}
